#ifndef __XTP2046_INTERFACE_H
#define __XTP2046_INTERFACE_H 

/**
 * @file drv_xtp2046_interface.h
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2025-05-07
 * 
 * @copyright Copyright (c) 2025
 * 
 */

#include "stdint.h"
#include "stdio.h"
/**
 *  
 *
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 */



 void xpt2046_interface_spi_init(void);

 void xpt2046_interface_spi_deinit(void);
 
 void xpt2046_interface_spi_transmit(uint8_t *txdata,uint8_t *rxdata ,uint16_t len);
 
 void xpt2046_interface_gpio_init(void);
 
 void xpt2046_interface_gpio_cs_write(uint8_t level);
 
 uint8_t xpt2046_interface_gpio_penirq_read(void);
 
 void xpt2046_interface_exit_penirq_init(void);
 
 void xpt2046_interface_exit_penirq_cmd(uint8_t enable);
 
 void xpt2046_interface_penirq_callback(uint8_t cmd);












#endif

